body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.box {
    display: flex;
    min-height: 100vh;
}

.left {
    width: 200px;
    background-color: #1e4569;
    color: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.left_tx {
    padding: 20px;
    text-align: center;
    background-color: #15395a;
}

.left_tx img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #fff;
    margin-bottom: 15px;
}

.left_tx p {
    margin: 0;
    font-size: 18px;
    color: #828384;
}

.right {
    flex: 1;
    padding: 20px;
    background-color: #f3f6f9;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #e8e8e8;
}

.menu-icon {
    width: 30px;
    height: 30px;
    background-color: #4caf50;
    border-radius: 50%;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-info a {
    margin-left: 15px;
    text-decoration: none;
    color: #333;
}

.breadcrumb {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #e8e8e8;
}

.breadcrumb a {
    text-decoration: none;
    color: #333;
}

.breadcrumb a:hover {
    color: #4caf50;
}

.content {
    margin-top: 20px;
    background-color: #ffffff;
    height: 80px;
}

.add-teacher {
    margin-top: 20px;
    float: right;
    padding: 10px 20px;
    background-color: #4caf50;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.add-teacher:hover {
    background-color: #45a049;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th,
td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

.button-group {
    display: flex;
    gap: 5px;
}

button {
    padding: 3px 5px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.view {
    background-color: #4CAF50;
    color: white;
}

.edit {
    background-color: #008CBA;
    color: white;
    margin: 3px;
}

.delete {
    background-color: #f44336;
    color: white;
    margin: 3px;
}

.active {
    background-color: #4CAF50;
    color: white;
    margin: 3px;
}

.inactive {
    background-color: #f44336;
    color: white;
}

input[type="text"] {
    padding: 5px;
    margin-right: 5px;
}

button[type="button"] {
    position: absolute;
    top: -8px;
    left: 186px;
    margin: 7px -10px;
    padding: 6px 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 3px;
}

.content_list {
    position: relative;
    margin-top: 20px;
    background-color: white;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

li {
    height: 80px;
    text-align: center;
    line-height: 80px;
    margin: 10px 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination button {
    padding: 8px 12px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.pagination button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.pagination span {
    font-size: 16px;
    color: #333;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

th {
    background-color: #f2f2f2;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination button {
    color: black;
    padding: 5px 10px;
    margin: 0 3px;
    border: 1px solid #ddd;
    background-color: #ffffff;
    cursor: pointer;
    border-radius: 3px;
}

.pagination button:hover {
    background-color: #f0f0f0;
}

.pagination button.active {
    background-color: #4CAF50;
    color: white;
    border: 1px solid #4CAF50;
}

.pagination button.disabled {
    background-color: #eee;
    color: #aaa;
    border: 1px solid #ccc;
    cursor: not-allowed;
}

.xq {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #00000033;
    z-index: 2;
    display: none;
}

.modal {
    width: 600px;
    margin: 50px auto;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 100px;
}

.modal h2 {
    margin-top: 0;
    font-size: 18px;
    color: #333;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.info-table td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.info-table td:last-child {
    border-bottom: none;
}

.info-table td:first-child {
    font-weight: bold;
    width: 100px;
}

.info-table td:nth-child(2) {
    width: 300px;
}

.info-table td:nth-child(3) {
    width: 200px;
}

.info-table td img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 5px;
}

.bio {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.x {
    display: block;
    width: 50px;
    height: 50px;
    background-color: #ccc;
    text-align: center;
    line-height: 50px;
    border-radius: 100%;
    float: right;
    size: 20px;
}


/* 新增部分 */

.del-message {
    padding: 15px;
    background-color: #c40000;
    color: white;
    margin-top: 20px;
    width: 200px;
    text-align: center;
    border-radius: 5px;
    position: fixed;
    top: 30px;
    right: 30px;
    display: none;
    opacity: 0.9;
}

.del-message::after {
    content: "×";
    float: right;
    cursor: pointer;
    color: rgb(255, 255, 255);
    margin-right: 5px;
    font-weight: bold;
}

.box_right {
    position: absolute;
    left: 200px;
    width: 100%;
    height: 1500px;
    background-color: #4caf50;
    display: none;
}

.add_none {
    width: 400px;
    background-color: red;
    height: 400px;
    position: absolute;
    top: 20%;
    left: 30%;
    z-index: 2;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 500px;
    padding: 20px;
}

.modal-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 14px;
    color: #333;
}

.form-group input,
.form-group select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group select {
    appearance: none;
    background-color: #fff;
}

.form-group .radio-group {
    display: flex;
    gap: 10px;
}

.form-group .radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-footer button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.modal-footer button.primary {
    background-color: #4CAF50;
    color: #fff;
}

.modal-footer button.secondary {
    background-color: #f44336;
    color: #fff;
}

.form-container {
    width: 600px;
    margin: 20px auto;
    border: 1px solid #ccc;
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: inline-block;
    width: 80px;
    text-align: right;
    margin-right: 10px;
}

input[type="text"],
input[type="date"],
input[type="email"],
select,
textarea {
    width: 300px;
    padding: 5px;
    border: 1px solid #ccc;
}

textarea {
    width: 300px;
    height: 100px;
}

.gender-radio {
    margin-left: 80px;
}

.gender-radio label {
    display: inline-block;
    margin-right: 10px;
}

.editor-toolbar {
    margin-bottom: 10px;
}

.editor-toolbar button {
    border: none;
    background: none;
    cursor: pointer;
}

.form-container {
    position: fixed;
    top: 20%;
    left: 30%;
    width: 500px;
    margin: 20px;
    font-family: Arial, sans-serif;
    background-color: white;
}

.form-row {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

label {
    width: 80px;
    margin-right: 10px;
    text-align: right;
}

input,
select {
    width: 200px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.avatar-upload {
    padding: 10px;
    text-align: center;
    width: 150px;
}

.gender-group {
    display: flex;
    gap: 20px;
}

.submit-btn {
    background: #1890ff;
    color: white;
    padding: 8px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.grzx {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #82838474;
}

tr:hover {
    background-color: pink;
    color: white;
}

.container {
    width: 800px;
    height: 500px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* 编辑模态框 */

.edit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="date"],
input[type="tel"],
input[type="email"],
select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #4CAF50;
    color: white;
}